import http from "@/utils/http";

// 获取用户列表接口
export function getUsersListAPI() {
    return http({
        url: "/pet-adopt/admin/users",
    });
}

// 禁用用户接口
export function postUserDisableAPI(userId: number) {
    return http({
        url: "/pet-adopt/admin/user/disable",
        method: "POST",
        data: {
            userId: userId,
        },
    });
}

// 管理员登录接口
export function postLoginAPI(loginForm){
    return http({
        url:"/pet-adopt/auth/adminLogin",
        method:'post',
        data:loginForm
    })
}

// 修改用户信息接口
export function postupdateUserInfo(userInfo){
    return http({
        url:"/pet-adopt/updateUserInfo",
        method:"post",
        data:userInfo
    })
}